from scanners import *

def scanLine(lineNumber, lineText):
	if 'todo' in lineText:
		addResult(lineNumber, position, numberOfLinesMatched)

def scanFile(fileObject):
	pass

if __name__ == "__main__":
	addConfigOption("name", type(str), "default")
	addConfigOption("name", type(str), "default")
	addConfigOption("name", type(str), "default")

	setScannerSingleLine(scanLine)
	setScannerFile(...)

	makeStuffGoNow()


# other option - we are called by the lib code:

def getConfig():
	addConfigOption("name", type(str), "default")
	addConfigOption("name", type(str), "default")
	addConfigOption("name", type(str), "default")

def getSCannerType():
	return (SingleLineScanner, scan)

def scan(line):
	myConfigItem = getConfigOption("name")

	if 'todo' in lineText:
		addResult(lineNumber, position, numberOfLinesMatched)

def browse(root):
	...
		addResult(sub-path)
